package com.atguigu.spzx.cart;

import com.atguigu.spzx.common.annotation.EnableUserWebMvcConfiguration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.openfeign.EnableFeignClients;

@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
@EnableFeignClients(basePackages = { //引用的feign接口包不是主程序所在的包，必须声明扫描指定包
        "com.atguigu.spzx.feign.product"
})
@EnableUserWebMvcConfiguration //开启自定义拦截器功能，将用户信息绑定到线程上。
public class CartApplication {
    public static void main(String[] args) {
        SpringApplication.run(CartApplication.class);
    }
}
